<%@page import="systems.AdsSystem"%>
<%@page import="models.RecentSite"%>
<%@page import="java.util.ArrayList"%>
<%@page import="java.util.List"%>
<%@page import="helpers.HeaderHelper"%>
<%@page import="models.Domain"%>
<%
	HeaderHelper headerHelper = (HeaderHelper) request.getAttribute("headerHelper");
	Domain domain = (Domain) request.getAttribute("domain");
%>

<jsp:include page="/layouts/header.jsp">
    <jsp:param name="title" value="<%=headerHelper.getTitle()%>" />
    <jsp:param name="description" value="<%=headerHelper.getDescription()%>" />
    <jsp:param name="keywords" value="<%=headerHelper.getKeywords()%>" />
    <jsp:param name="ogite_name" value="<%=headerHelper.getOgite_name()%>" />
    <jsp:param name="ogtitle" value="<%=headerHelper.getOgtitle()%>" />
    <jsp:param name="ogurl" value="<%=headerHelper.getOgurl()%>" />
    <jsp:param name="ogimage" value="<%=headerHelper.getOgimage()%>" />
    <jsp:param name="ogescription" value="<%=headerHelper.getOgescription()%>" />
</jsp:include>

		<!-- 2. content -->
		<div id="content">
			<!-- 3. whois-info -->
			<div class="site-header whois-info">
				<h2>Whois <a href="/s/<%=domain.getName() %>"><%=domain.getName() %></a></h2>
				<div>
					<!-- google adsense -->
					<%=AdsSystem.getAds728x90() %>
					<!-- end google adsense -->
				</div>
				<div>
					<%=domain.getWhois() %>
				</div>
			</div>
			<!-- 3. end whois-info -->
		</div>
		<!-- 2. end content -->
		
		<!-- 2. side -->
		<div id="side">
			<!-- 3. block -->
			<div class="block">
				<%=AdsSystem.getAds300x250() %>
			</div>
			<!-- 3. end block -->
		
			<!-- 3. block -->
			<div class="block">
				<h3>Recent Site Update</h3>
				<div class="lst">
					<ul>
					<%
						ArrayList<Domain> recentSiteUpdate = RecentSite.getRecentSiteUpdate();
						for (int i = 0; i < recentSiteUpdate.size(); i++) {
					%>
						<li><a href="/s/<%=recentSiteUpdate.get(i).getName()%>"><%=recentSiteUpdate.get(i).getName()%></a></li>
					<%	} %>
					</ul>
				</div>
			</div>
			<!-- 3. end block -->
			
			<!-- 3. block -->
			<div class="block">
				<%=AdsSystem.getAds300x250() %>
			</div>
			<!-- 3. end block -->
			
			<!-- 3. block -->
			<div class="block">
				<h3>Recent Site View</h3>
				<div class="lst">
					<ul>
						<%
						ArrayList<String> recentSiteView = RecentSite.getRecentSiteView();
						for (int i = 0; i < recentSiteView.size(); i++) {
					%>
						<li><a href="/s/<%=recentSiteView.get(i)%>"><%=recentSiteView.get(i)%></a></li>
					<%	} %>
					</ul>
				</div>
			</div>
			<!-- 3. end block -->
		</div>
		<!-- 2. end side -->
		
		<div class="clear"></div>				
<jsp:include page="/layouts/footer.jsp">
    <jsp:param name="language" value="1" />
</jsp:include>
